package com.javen.springbootneo4j.entity.relation;

import com.javen.springbootneo4j.entity.node.City;
import com.javen.springbootneo4j.entity.node.Person;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;

/**
 * @Description: com.javen.springbootneo4j.entity.relation
 * @Author: tujw@netinnet.cn
 * @Date: 2024/2/29 11:24
 */
@Node
public class LivesIn {

    @Id
    @GeneratedValue
    private Long id;

    private Person person;

    private City city;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }
}
